package com.hrms.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hrms.domain.Evaluation;
import com.hrms.service.EvaluationService;
import com.hrms.mapper.EvaluationMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 15770
* @description 针对表【t_evaluation】的数据库操作Service实现
* @createDate 2024-12-17 21:55:39
*/
@Service
public class EvaluationServiceImpl extends ServiceImpl<EvaluationMapper, Evaluation>
    implements EvaluationService{

    @Autowired
    private EvaluationMapper evaluationMapper;

    @Override
    public List<Evaluation> selectEvaluationList(Evaluation evaluation) {
        return evaluationMapper.selectEvaluationList(evaluation);
    }

    @Override
    public Evaluation selectDepartmentByDeptNo(Long evaluationId) {
        return evaluationMapper.selectDepartmentByDeptNo(evaluationId);
    }

    @Override
    public int insertDepartment(Evaluation evaluation) {
        return evaluationMapper.insert(evaluation);
    }

    @Override
    public int updateDepartment(Evaluation evaluation) {
        return evaluationMapper.updateById(evaluation);
    }

    @Override
    public int deleteDepartmentByDeptNos(Integer evaluationId) {
        return evaluationMapper.deleteById(evaluationId);
    }
}




